package cn.edu.sjtu.process_management.repository;

import cn.edu.sjtu.process_management.model.Process;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author loumoon
 * @date 2019-11-01 13:30
 */
@Repository
public interface ProcessRepository extends MongoRepository<Process, String> {

    Process findProcessByNameAndOwner(final String name, final String owner);

    List<Process> findProcessesByOwner(final String owner);

}
